<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>download</title>
</head>
<body>
<a href="{% url 'download1' %}">HttpResponse-下载</a>
<br>
<a href="{% url 'download2' %}">StreamingHttpResponse-下载【推荐使用】</a>
<br>
<a href="{% url 'download3' %}">FileResponse-下载</a>
</body>
</html>